package com.easy.dao;

import com.easy.bean.Record;
import com.easy.util.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface IRecordDao {
    Record getDeliveryByID(int id);
    Record getReceiptByID(int id);
    List<Record> getDelivery(@Param("record") Record record, @Param("page") Page page);
    List<Record> getReceipt(@Param("record") Record record, @Param("page") Page page);
    int getDeliveryCount(@Param("record") Record record);
    int getReceiptCount(@Param("record") Record record);

    int delDelivery(int id);
    int delReceipt(int id);

    int addDelivery(Record record);
    int addReceipt(Record record);

    int editDelivery(Record record);
    int editReceipt(Record record);

}
